﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chinaer.DTO;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.ComponentModel;

namespace Chinaer.WCF.Contracts
{
    /// <summary>
    /// 注册接口  存在商家注册 店铺注册  管理员注册三种
    /// </summary>
    public partial interface IChinaer
    {
        /// <summary>
        /// 商家注册
        /// </summary>
        /// <param name="shangjiaDTO"></param>
        /// <returns></returns>
        [OperationContract]
        [WebInvoke(Method="POST",
            BodyStyle=WebMessageBodyStyle.Bare,
            RequestFormat=WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "RegisterShangJia")]
        [Description("商家注册")]
        Chinaer.Model.Common.JsonResult RegisterShangJia(ShangJiaDTO shangjiaDTO);
        /// <summary>
        /// 管理员注册
        /// </summary>
        /// <param name="administratorDTO"></param>
        /// <returns></returns>
        [OperationContract]
        [WebInvoke(Method = "POST",
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "RegisterAdministrator")]
        [Description("管理员注册")]
        Chinaer.Model.Common.JsonResult RegisterAdministrator(AdministratorDTO administratorDTO);

        /// <summary>
        /// 顾客注册
        /// </summary>
        /// <param name="customerDTO"></param>
        /// <returns></returns>
        [OperationContract]
        [WebInvoke(Method = "POST",
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "RegisterCustomer")]
        [Description("顾客注册")]
        Chinaer.Model.Common.JsonResult RegisterCustomer(CustomerDTO customerDTO);
        /// <summary>
        /// 员工注册
        /// </summary>
        /// <param name="employeeDTO"></param>
        /// <returns></returns>
        [OperationContract]
        [WebInvoke(Method = "POST",
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "RegisterEmployee")]
        [Description("员工注册")]
        Chinaer.Model.Common.JsonResult RegisterEmployee(EmployeeDTO employeeDTO);

    }
}
